package com.java.pojo;

public class User {
    private Integer loginname;

    private String password;

    private String truename;

    private String email;

    private Integer userstate;

    private Integer roleid;

    @Override
    public String toString() {
        return "User{" +
                "loginname=" + loginname +
                ", password='" + password + '\'' +
                ", truename='" + truename + '\'' +
                ", email='" + email + '\'' +
                ", userstate=" + userstate +
                ", roleid=" + roleid +
                '}';
    }

    public User() {
    }

    public User(Integer loginname, String password, String truename, String email, Integer userstate, Integer roleid) {
        this.loginname = loginname;
        this.password = password;
        this.truename = truename;
        this.email = email;
        this.userstate = userstate;
        this.roleid = roleid;
    }

    public Integer getLoginname() {
        return loginname;
    }

    public void setLoginname(Integer loginname) {
        this.loginname = loginname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getTruename() {
        return truename;
    }

    public void setTruename(String truename) {
        this.truename = truename == null ? null : truename.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getUserstate() {
        return userstate;
    }

    public void setUserstate(Integer userstate) {
        this.userstate = userstate;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }
}